package com.service.Impl;

import com.service.UserService;
import org.apache.ibatis.session.SqlSession;

import com.dao.UserDAO;
import com.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDAO userDAO;
	@Override
	public User select(String userEmail,String password) {
		User u=userDAO.selectOne(userEmail, password);

		return u;
	}

	@Override
	public void insert(User u) {

			userDAO.insert(u);

	}

}
